package cn.itcast.nems.discount.dto;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class DiscountSummaryDTO implements Serializable {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -6407351205081943949L;
    
    /** 优惠ID */
    private Integer id;
    
    /*优惠名称*/
    private String name;
    
    /* 优惠类型：0-直接优惠金额、1-优惠百分比 */
    private Integer type;
    
    /* 优惠金额 */
    private BigDecimal amount;
    
    /* 折扣率 */
    private Double rate;
    
    /*描述*/
    private String description;
       
    /*创建时间*/
    private LocalDateTime createdDateTime;
    
    /*创建人真实姓名*/
    private String createdBy;
    
    /* 是否启用：0-停用、1-启用 */
    private Integer state;
}
